﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace TicketSeller
{
    [Serializable]
    [CollectionDataContract( Name="ticketsCollection", ItemName="ticket")]
    public class TicketsCollection : List<Ticket>
    {
        public TicketsCollection() { }

        public TicketsCollection( List<Ticket> tickets) : base(tickets) { }

        public TicketsCollection(params Ticket[] tickets) 
        {
            foreach (Ticket ticket in tickets)
                Add(ticket);
        } 
    }
}
